|
|
|
|
|
|
|
In this dialog box, you can select the required fields from each table in the database, and then define the filters needed for the query. When defining the filters for the query, you must click the And into Criteria button or the Or into Criteria button to actually add the filter to the query. Also, the Set Table Joins button displays a dialog box that allows you to define the table relationships for this query (see Figure 9.14). |
|
|
|
|
|
|
|
|
Figure 9.14.
The Join Tables dialog box sets the table
relationships for the query. |
|
|
|
|
|
|
|
|
After you define the query and set the table relationships and filters, you can perform one of the following actions: |
|
|
|
|
|
|
|
|
Display the resulting query recordset (see Figure 9.15) |
|
|
|
|
|
|
|
|
Display the SQL statement generated for the query |
|
|
|
|
|
|
|
|
Copy the SQL statement to the SQL statement window |
|
|
|
|
|
|
|
|
Save the query to the database (see Figure 9.16) |
|
|
|
|
|
|
|
|
Figure 9.15.
While designing the query, you can execute the resulting
SQL to see whether the results are what you want. |
|
|
|
|
|